﻿Imports System.Data
Imports System.Data.OleDb
Imports DAO
Imports DTO

Public Class NhanVienBus

    Shared dao As New NhanVienDao
    Public Shared Function LayNguoiDangNhap(ByVal tenDangNhap As String, ByVal matKhau As String) As Integer
        Return dao.LayNguoiDangNhap(tenDangNhap, matKhau)
    End Function

    Public Shared Function LayNguoiDung(ByVal tenDangNhap As String, ByVal matKhau As String) As DataTable
        Return dao.LayNguoiDung(tenDangNhap, matKhau)
    End Function

    Public Shared Function LayNguoiDungTheoMa(ByVal maNhanVien As Long) As DataTable
        Return dao.LayNguoiDungTheoMa(maNhanVien)
    End Function

    Public Shared Function LayNguoiDung() As DataTable
        Return dao.LayNguoiDung()
    End Function

    Public Shared Function LayQuyen() As DataTable
        Return dao.LayQuyen()
    End Function
    Public Shared Function LayDanhSachNguoiDung() As DataTable
        Return dao.LayDanhSachNguoiDung()
    End Function
    Public Shared Function ThemNhanVien(ByVal nhanVien As NhanVienDto) As Integer
        Return dao.ThemNhanVien(nhanVien)
    End Function
    Public Shared Function CapNhatNhanVien(ByVal nhanVien As NhanVienDto) As Integer
        Return dao.CapNhatNhanVien(nhanVien)
    End Function
    Public Shared Function TimKiemNhanVien(ByVal nhanVien As NhanVienDto) As DataTable
        Return dao.TimKiemNhanVien(nhanVien)
    End Function
    Public Shared Function XoaNhanVien(ByVal nhanVien As NhanVienDto) As String
        Return dao.XoaNhanVien(nhanVien)
    End Function
End Class
